import React, { Component } from 'react'
import '../assets/css/domOper.css'
export default class DomOper extends Component {
 constructor(){
    super()
    this.boxRef=React.createRef()
 }
  render() {
    return (
      <div>
         <div className="box" ref={this.boxRef} onClick={()=>{
            this.boxRef.current.style.backgroundColor="orange"
         }}></div>
      </div>
    )
  }
}
